package com.flymobi.show3d;

import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

public class SHow3DActivity extends Activity {
	private ImageView3d prod1;
	MediaPlayer mediaPlayer;
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		mediaPlayer = MediaPlayer.create(this, R.raw.bfc);
		mediaPlayer.start();
		setContentView(R.layout.main);
		prod1 = (ImageView3d) findViewById(R.id.prod1);
		prod1.set3DAnimation(R.drawable.animx);
		prod1.setAnimation3DY(R.drawable.animy);
		
	}
	/* (non-Javadoc)
	 * @see android.app.Activity#finish()
	 */
	@Override
	public void finish() {
		super.finish();
		mediaPlayer.stop();
	}
	
}